<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			body 
			{
				background: #ccc;
			}
			
			.box {
				width: 300px;
				height: 300px;
				border: 10px solid #000;
				background: url(img/1.jpg) no-repeat;
				/*设置图片的背景尺寸,使图片充满相框*/
			}
		</style>
	</head>

	<body>
		<div class="box"></div>
	</body>

</html>